<template>
    <el-card>
        <div class="box">
            <img :src="userStore.avatar" class="avatar">
            <div class="bottom">
                <h3 class="title">{{getTime()}}好!{{ userStore.username }}</h3>
                <p class="subtitle">硅谷甄选运营平台</p>
            </div>
        </div>
        
    </el-card>
    <div class="bottom1">
        <svg-icon name="welcome" width="600px" height="300px" ></svg-icon>
    </div>
    
</template>
<script setup lang="ts">
import { onMounted } from 'vue';
import useUserStore from '@/store/modules/user'
import { getTime } from '@/utils/time';
let userStore=useUserStore();
</script>
<style scoped>
.box{
    display: flex;
    .avatar{
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }
    .bottom{
        margin-left: 20px;
        .title{
            font-size: 30px;
            font-weight: 900;
            margin-bottom: 20px;
        }
        .subtitle{
            font-style: italic;
            color: skyblue;
        }
    }
}
.bottom1{
    margin-top: 10px;
    display: flex;
    justify-content: center;
}
</style>